package main

import (
	"bytes"
	"fmt"
	"strings"
)

func main() {
	//bytes.

	{
		bb1 := []byte("你好a")
		bb2 := []byte("你好a")
		bb3 := []byte("你好A")
		fmt.Println(bytes.Compare(bb1, bb2))   //0
		fmt.Println(bytes.Contains(bb1, bb2))  //true
		fmt.Println(bytes.Index(bb1, bb2))     //0
		fmt.Println(bytes.Equal(bb1, bb2))     //true
		fmt.Println(bytes.Equal(bb1, bb3))     //false
		fmt.Println(bytes.EqualFold(bb1, bb3)) //true

		fmt.Println(bytes.Runes(bb1))
		fmt.Println(bytes.ContainsRune(bb1, '好'))

		fmt.Println(strings.Repeat("*", 18))
	}
}
